﻿namespace _5._2._02.RefactoringCSharpEnum
{
    public class LivingBeing
    {
        public void CreatePerson(int idNumber)
        {
            Person samplePersonObject = new Person();
            samplePersonObject.Age = idNumber;

            if (idNumber % 2 == 0)
            {
                samplePersonObject.Name = "Борис";
                samplePersonObject.Sex = Sex.Male;
            }
            else
            {
                samplePersonObject.Name = "Анна-Мария";
                samplePersonObject.Sex = Sex.Female;
            }
        }
    }
}